<%@ page import="cn.com.pc.penguin.builder.keyword.KeywordSearchArgs" %>
<%@ page import="cn.com.pc.penguin.service.PenguinSearchResults" %>
<%@ page import="cn.com.pc.penguin.service.impl.LocalPenguinService" %>
<%@ page import="cn.com.pc.penguin.utils.SpringBeanUtil" %>
<%@ page import="java.util.List" %>
<%@ page language="java" contentType="text/html; charset=GBK" %>
<%
    try {
        LocalPenguinService penguinService = (LocalPenguinService)SpringBeanUtil.getBean("penguinService");
        KeywordSearchArgs args = new KeywordSearchArgs();
        args.setSuggestion("n");
        PenguinSearchResults result = penguinService.search(args);
        List<String> results = result.getLists();
         out.println("size:" + results.size());
        for(String res : results){
            out.println("===" + res);
        }

    } catch (Exception e) {
        e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
    }
%>